package cn.edu.scau.cmi.ema.service;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Foodbatchadditive;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface FoodbatchadditiveService {

	public Foodbatchadditive saveFoodbatchadditive(Foodbatchadditive foodbatchadditive);

	public Set<Foodbatchadditive> loadFoodbatchadditives();

	public Set<Foodbatchadditive> loadReferenceFoodbatchadditives(Set<Foodbatchadditive> foodbatchadditives);

	public Set<Foodbatchadditive> loadFoodbatchadditivesByIdSet(Set<Integer> foodbatchadditivesId);

	public Map<String, ?> loadFoodbatchadditiveObjectReferencedSet(Foodbatchadditive foodbatchadditive);

	public Map<String, ?> loadFoodbatchadditiveClassReferencedSet(Foodbatchadditive foodbatchadditive);

	public void deleteFoodbatchadditive(Foodbatchadditive foodbatchadditive);

	public void deleteFoodbatchadditives(Set<Integer> deleteFoodbatchadditivesId);

	public List<Foodbatchadditive> findAllFoodbatchadditives(Integer startResult, Integer maxRows);

	public Foodbatchadditive findFoodbatchadditiveByPrimaryKey(Integer id);

	public Integer countFoodbatchadditives();

	public Integer countFoodbatchadditives(CmiPagination page);

	public Integer countFoodbatchadditivesByName(String queryName);

	public Integer countFoodbatchadditivesByDetachedCriteria(CmiPagination page);

}
